//
//  WYHPrinterParam.m
//  BluetoothPrint
//
//  Created by wang on 2017/11/3.
//  Copyright © 2017年 wang. All rights reserved.
//

#import "WYHPrinterParam.h"

@implementation WYHPrinterParam



- (NSArray *)characteristicPropertyArr
{
    if (_characteristicPropertyArr) {
        return _characteristicPropertyArr;
    }
    
    return @[@"Write",@"Read",@"Notify",@"Indicate"];
}

- (NSInteger)sigleDataMaxLength
{
    if (_sigleDataMaxLength) {
        return _sigleDataMaxLength;
    }
    return 80;
}

- (double)printerWidth
{
    if (_printerWidth) {
        return _printerWidth;
    }
    return 7;
}
- (NSInteger)maxPrintNumber
{
    if (_maxPrintNumber) {
        return _maxPrintNumber;
    }
    NSInteger number = 0;
    if(self.isNeedle){
        number = self.printerWidth*2.5*7;
        return number;
    }
    number = self.printerWidth*7;
    return number;
}
- (double)sleepTime
{
    if (_sleepTime) {
        return _sleepTime;
    }
    return 0.1;
}
- (NSInteger)printCodeLength
{
    if (_printCodeLength) {
        return _printCodeLength;
    }
    return 40;
}
@end
